package com.platform.controller;

import com.platform.entity.CouponType;
import com.platform.service.CouponTypeService;
import com.platform.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("coupon")
public class CouponTypeController {
    @Autowired
    private CouponTypeService couponTypeService;

    @RequestMapping("/queryCouponType")
    public R queryCouponType(){
        List<CouponType> list=couponTypeService.queryCouponType();
        return R.ok().put("couponTypeList",list);
    }
}
